home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / PickOne / headers / PickOne_document.h next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.6 KB  |  63 lines  |  [TEXT/CWIE]

  1. /*  document.h                                                                            
  2.  
  3.     This contains all the document-specific code.
  4.                                                                                     
  5.     Michael Bishop - August 21 1996                                                    
  6.     Nick Thompson
  7.     Robert Dierkes                                                                                
  8.     (c)1994-96 Apple computer Inc., All Rights Reserved                                
  9.  
  10. */
  11.  
  12.  
  13. #ifndef _BP_DOCUMENT_H_
  14. #define    _BP_DOCUMENT_H_
  15.  
  16. #include    <QuickDraw.h>
  17.  
  18. /*  for QuickDraw 3D */
  19. #include    "QD3D.h"
  20. #include    "QD3DPick.h"
  21.  
  22.  
  23. typedef struct _documentRecord DocumentRec, *DocumentPtr, **DocumentHdl ;
  24.  
  25. /* -------------------------------------------------------------------------------------------
  26. ** 
  27. */
  28.  
  29. DocumentHdl        Document_New(void);
  30. void            Document_Dispose( DocumentHdl theDocument) ;
  31.  
  32. TQ3CameraObject    Document_GetCamera(DocumentHdl    theDocument);
  33.  
  34. TQ3Status        Document_GetRendererPreferences(DocumentHdl    theDocument,
  35.                                                 long        *theVendorID,
  36.                                                 long        *theEngineID);
  37. TQ3Status        Document_SetRendererPreferences(DocumentHdl    theDocument,
  38.                                                 long        theVendorID,
  39.                                                 long        theEngineID);
  40.  
  41. TQ3Status    Document_Open(DocumentHdl theDocument);
  42. TQ3Status    Document_Save(DocumentHdl    theDocument);
  43. TQ3Status    Document_Draw( DocumentPtr theDocument ) ;
  44. TQ3Status    Document_Remap(DocumentHdl theDocument, int newResolution);
  45. TQ3Status    Document_SubmitScene( DocumentPtr theDocument ) ;
  46. void        Document_Idle(DocumentHdl theDocument);
  47.  
  48.  
  49.  
  50.  
  51.  
  52. TQ3Status ChangeGroupTransform (TQ3HitPath *path,
  53.                                 TQ3Vector3D *translate);
  54. void    Document_Rotate(DocumentHdl    theDocumentHdl,
  55.                             TQ3GroupObject    theGroup);
  56. void Document_DoPickAndRotate( DocumentHdl pDocument);
  57. TQ3TransformObject Document_GetGroupTransform(TQ3GroupObject    theGroup);                                
  58.  
  59.  
  60.  
  61.  
  62.  
  63. #endif